package edu.sctu.practice.class01.wulixia.month09_wlx.test01;

import java.util.Scanner;

/**
 * Created by wulixia on 2015/10/12.
 */
public class GamerB {
    public static void main(String[] args) {
        System.out.println("游戏开始，请B猜测A的数字为多少。");
        Scanner scanner = new Scanner(System.in);

        GamerA gamerA = new GamerA();

        while(true){
            int answer = scanner.nextInt();
            gamerA.isGuessResult(answer);

            if(answer == gamerA.number){
                scanner.close();
                break;
            }
        }
    }
}
